import homeRouters from './modules/home/index'
import bzhRouters from './modules/bzh/index'
import kjptRouters from './modules/kjpt/index'
import kjsfRouters from './modules/kjsf/index'
import kjtjRouters from './modules/kjtj/index'
import kjxmRouters from './modules/kjxm/index'
import kpzhRouters from './modules/kpzh/index'
import yxjkRouters from './modules/yxjk/index'
import zyjyRouters from './modules/zyjy/index'
import wlaqRouters from './modules/wlaq/index'
import cgzhRouters from './modules/cgzh/index'
import wcxRouters from './modules/wcx/index'
import tjptRouters from './modules/tjpt/index'
import zjkRouters from './modules/zjk/index'
import Layout from "@/layouts";
import Home from "@/layouts/home";


const jttRouterList = [...kjxmRouters, ...kjsfRouters, ...kjptRouters, ...bzhRouters, ...kjtjRouters,
...kpzhRouters, ...yxjkRouters, ...zyjyRouters, ...wlaqRouters, ...cgzhRouters, ...zjkRouters, ...homeRouters, ...tjptRouters];
const jtRouterList = [...kjxmRouters, ...tjptRouters, ...kjptRouters, ...kjsfRouters, ...bzhRouters, ...kjtjRouters, ...kpzhRouters, ...wcxRouters, ...cgzhRouters, ...zjkRouters, ...homeRouters,];
// 存放动态路由
export const asyncRouterList = import.meta.env.VITE_SITE_TAG === 'jtt' ? jttRouterList : jtRouterList;

const routerList = [
  {
    path: '/bzhEvaluation',
    component: () => import('@/pages/bzh/evaluation.vue'),
  },
  {
    path: '/expert',
    component: Home,
    meta: { hidden: true },
    children: [
      {
        path: 'extract',
        component: () => import('@/pages/wcx/review/review-expert-innovation.vue'),
        meta: { title: '专家分配成果', hidden: true },
      },
    ]
  },
  {
    path: "/user",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: '',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        redirect: '/user/index',
        children: [
          {
            path: 'index',
            component: () => import('@/pages/user/center.vue'),
            meta: { title: '个人中心', hidden: true },
          },
          {
            path: 'message',
            component: () => import('@/pages/user/message.vue'),
            meta: { title: '消息通知', hidden: true },
          },
          {
            path: 'help',
            component: () => import('@/pages/user/help.vue'),
            meta: { title: '帮助中心', hidden: true },
          },
        ]
      },

    ]
  },
  {
    path: "/home/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'system',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'user/role/:userId(\\d+)',
            component: () => import('@/pages/common/system/user-role-index.vue'),
            meta: { title: '分配角色', hidden: true, activeMenu: '/home/system/user' },
          },
          {
            path: 'role/user/:roleId(\\d+)',
            component: () => import('@/pages/common/system/role-user-index.vue'),
            meta: { title: '角色用户', hidden: true, activeMenu: '/home/system/role' },
          },
          {
            path: 'dict/data/:dictId(\\d+)',
            name: 'home-system-dict-data-index',
            component: () => import('@/pages/common/system/dict-data-index.vue'),
            meta: { title: '字典数据', hidden: true, isAlive: true, activeMenu: '/home/system/dict' },
          },
          {
            path: 'sub-system/menu/:serviceId(\\d+)',
            component: () => import('@/pages/common/system/menu-index.vue'),
            meta: { title: '菜单管理', hidden: true, activeMenu: '/home/system/sub-system' },
          },
        ]
      },
      {
        path: 'monitor',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'job-log/:jobId(\\d+)',
            component: () => import('@/pages/common/monitor/job-log.vue'),
            meta: { title: '调度日志', hidden: true, activeMenu: '/home/monitor/job' },
          },
        ]
      }

    ]
  },
  {
    path: "/kjpt/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'platform',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'platform-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjpt/platform/platform-apply.vue'),
            meta: { title: '平台申报', hidden: true, isAlive: false, activeMenu: '/kjpt/platform/platform-index' },
          }
        ]
      },
      {
        path: 'platform',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'platform-score-list/:taskId(\\d+)',
            component: () => import('@/pages/kjpt/platform/platform-score-list.vue'),
            meta: { title: '平台分数', hidden: true, isAlive: false, activeMenu: '/kjpt/platform/platform-index' },
          }
        ]
      },
      {
        path: 'platform',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'platform-score-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjpt/platform/platform-score-apply.vue'),
            meta: { title: '平台分数录入', hidden: true, isAlive: false, activeMenu: '/kjpt/platform/platform-index' },
          }
        ]
      },
      {
        path: 'platform',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'platform-apply2/:taskId(\\d+)',
            component: () => import('@/pages/kjpt/platform/platform-apply2.vue'),
            meta: { title: '平台申报', hidden: true, isAlive: false, activeMenu: '/kjpt/platform/platform-my' },
          }
        ]
      },
      {
        path: 'platform',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'innovation-studio-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjpt/platform/innovation-studio-apply.vue'),
            meta: { title: '申报创新工作室', hidden: true, isAlive: false, activeMenu: '/kjpt/platform/innovation-studio-my' },
          }
        ]
      },
    ]
  },
  {
    path: "/tjpt/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'platform',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'platform-apply/:taskId(\\d+)',
            component: () => import('@/pages/tjpt/platform/platform-apply.vue'),
            meta: { title: '平台申报', hidden: true, isAlive: false, activeMenu: '/tjpt/platform/platform-index' },
          }
        ]
      },
      {
        path: 'platform',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'platform-apply2/:taskId(\\d+)',
            component: () => import('@/pages/tjpt/platform/platform-apply2.vue'),
            meta: { title: '平台申报', hidden: true, isAlive: false, activeMenu: '/tjpt/platform/platform-my' },
          }
        ]
      },
      {
        path: 'platform',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'innovation-studio-apply/:taskId(\\d+)',
            component: () => import('@/pages/tjpt/platform/innovation-studio-apply.vue'),
            meta: { title: '申报创新工作室', hidden: true, isAlive: false, activeMenu: '/tjpt/platform/innovation-studio-my' },
          }
        ]
      },
    ]
  },
  {
    path: "/kjsf/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'implement',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'implement-plan-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjsf/implement/implement-plan-apply.vue'),
            meta: { title: '实施申报', hidden: true, isAlive: false, activeMenu: '/kjsf/implement/implement-plan-my' },
          }
        ]
      },
      {
        path: 'apply',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'project-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjsf/apply/project-apply.vue'),
            meta: { title: '项目申报', hidden: true, isAlive: false, activeMenu: '/kjsf/apply/project-my' },
          },
        ]
      },
      {
        path: 'implement',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'performance-report-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjsf/implement/performance-report-apply.vue'),
            meta: { title: '项目执行情况表填报', hidden: true, activeMenu: '/kjsf/implement/performance-report-my' },
          },
        ]
      },
      {
        path: 'acceptance',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'pre-acceptance-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjsf/acceptance/pre-acceptance-apply.vue'),
            meta: { title: '预验收申请', hidden: true, activeMenu: '/kjsf/acceptance/pre-project-my' },
          },
          {
            path: 'acceptance-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjsf/acceptance/acceptance-apply.vue'),
            meta: { title: '验收申请', hidden: true, activeMenu: '/kjsf/acceptance/project-my' },
          },
        ]
      },
    ]
  },
  {
    path: "/bzh/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'report',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'report-apply/:taskId(\\d+)',
            component: () => import('@/pages/bzh/report/report-apply.vue'),
            meta: { title: '报审表申报', hidden: true, isAlive: false, activeMenu: '/bzh/report/report-my' },
          }
        ]
      },
      {
        path: 'submit',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'submit-apply/:taskId(\\d+)',
            component: () => import('@/pages/bzh/submit/submit-apply.vue'),
            meta: { title: '报批表申报', hidden: true, isAlive: false, activeMenu: '/bzh/submit/submit-my' },
          }
        ]
      },
      {
        path: 'apply',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'standard-apply/:taskId(\\d+)',
            component: () => import('@/pages/bzh/apply/standard-apply.vue'),
            meta: { title: '申报表申报', hidden: true, isAlive: false, activeMenu: '/bzh/apply/apply-my' },
          }
        ]
      },
      {
        path: 'register',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'register-apply/:id(\\d+)',
            component: () => import('@/pages/bzh/register/register-apply.vue'),
            meta: { title: '登记页', hidden: true, isAlive: false, activeMenu: '/bzh/register/register-my' },
          },
        ]
      },
      {
        path: 'suggest',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'suggest-apply/:taskId(\\d+)',
            component: () => import('@/pages/bzh/suggest/suggest-apply.vue'),
            meta: { title: '建议表申报', hidden: true, isAlive: false, activeMenu: '/bzh/suggest/suggest-my' },
          },
        ]
      },
      {
        path: 'opinion',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'opinion-apply/:taskId(\\d+)',
            component: () => import('@/pages/bzh/opinion/opinion-apply.vue'),
            meta: { title: '征求意见处理汇总表申报', hidden: true, isAlive: false, activeMenu: '/bzh/opinion/opinion-my' },
          },
        ]
      },
      {
        path: 'approve',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'user-project/:userId(\\d+)',
            component: () => import('@/pages/bzh/approve/select-approver-project.vue'),
            meta: { title: '待标委会项目分配', hidden: true, activeMenu: '/bzh/approve/approver-management' },
          },
        ]
      },
    ]
  },
  {
    path: "/zjk/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'expert',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'expert-detail/:objId(\\d+)',
            component: () => import('@/pages/zjk/expert/expert-detail.vue'),
            meta: { title: '专家详情', hidden: true, activeMenu: '/zjk/expert/expert-index' },
          },
          {
            path: 'expert-add/:objId(\\d+)',
            component: () => import('@/pages/zjk/expert/expert-detail.vue'),
            meta: { title: '添加专家', hidden: true, activeMenu: '/zjk/expert/expert-index' },
          },
        ]
      },
      {
        path: 'review',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'group/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/review/expert-leader-review-group.vue'),
            meta: { title: '评审组', hidden: true, activeMenu: '/zjk/review/review-group-opinion-my' },
          },
        ]
      },
      {
        path: 'bzhReview',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'group/:taskId(\\d+)',
            component: () => import('@/pages/bzh/review/expert-leader-review-group.vue'),
            meta: { title: '评审组', hidden: true, activeMenu: '/zjk/review/review-group-opinion-my' },
          },
        ]
      },
      {
        path: 'kjsfReview',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'group/:taskId(\\d+)',
            component: () => import('@/pages/kjsf/review/expert-leader-review-group.vue'),
            meta: { title: '评审组', hidden: true, activeMenu: '/zjk/review/review-group-opinion-my' },
          },
        ]
      },
    ]
  },
  {
    path: "/kjxm/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'pm',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'project-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/pm/project-apply.vue'),
            meta: { title: '项目申报', hidden: true, isAlive: false, activeMenu: '/kjxm/pm/project-my' },
          },
          {
            path: 'all-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/all-apply.vue'),
            meta: { title: '全阶段申报', hidden: true, isAlive: false, activeMenu: '/kjxm/pm/project-my' },
          },
          {
            path: 'three-project-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/pm/three-project-apply.vue'),
            meta: { title: '03专项申报', hidden: true, isAlive: false, activeMenu: '/kjxm/apply/three-project-my' },
          },
        ]
      },
      {
        path: 'apply',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'project-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/pm/project-apply.vue'),
            meta: { title: '项目申报', hidden: true, isAlive: false, activeMenu: '/kjxm/apply/project-my' },
          },
          {
            path: 'item-apply/:taskId(\\d+)/:showSubmitBtn?',
            component: () => import('@/pages/kjxm/apply/item-apply.vue'),
            meta: { title: '项目申报', hidden: true, isAlive: false, activeMenu: '/kjxm/apply/project-my' },
          },
        ]
      },
      {
        path: 'outline',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'project-outline/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/outline/project-outline.vue'),
            meta: { title: '大纲编制', hidden: true, activeMenu: '/kjxm/outline/project-my' },
          }
        ]
      },
      {
        path: 'contract',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'project-contract/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/contract/project-contract.vue'),
            meta: { title: '任务书签订', hidden: true, activeMenu: '/kjxm/contract/project-my' },
          },
          {
            path: 'contract-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/contract/contract-apply.vue'),
            meta: { title: '任务书签订', hidden: true, activeMenu: '/kjxm/contract/project-my' },
          },
        ]
      },
      {
        path: 'acceptance',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'acceptance-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/acceptance/acceptance-apply.vue'),
            meta: { title: '验收申请', hidden: true, activeMenu: '/kjxm/acceptance/project-my' },
          },
          {
            path: 'acceptance-opinion-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/acceptance/acceptance-opinion-apply.vue'),
            meta: { title: '验收意见书填报', hidden: true, activeMenu: '/kjxm/acceptance/project-my' },
          },
        ]
      },
      {
        path: 'approve',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'user-project/:userId(\\d+)',
            component: () => import('@/pages/kjxm/approve/select-approver-project.vue'),
            meta: { title: '待形式审查项目分配', hidden: true, activeMenu: '/kjxm/approve/approver-management' },
          },
        ]
      },
      {
        path: 'implement',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'change-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/implement/components/add-edit-change-apply.vue'),
            meta: { title: '变更申请', hidden: true, activeMenu: '/kjxm/implement/change-apply-my' },
          },
          {
            path: 'performance-report-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjxm/implement/performance-report-apply.vue'),
            meta: { title: '项目执行情况表填报', hidden: true, activeMenu: '/kjxm/implement/performance-report-my' },
          },
        ]
      },
    ]
  },
  {
    path: "/wcx/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'apply',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'innovation-apply/:taskId(\\d+)',
            component: () => import('@/pages/wcx/apply/innovation-apply.vue'),
            meta: { title: '微创新成果申报', hidden: true, activeMenu: '/wcx/apply/innovation-my' },
          }
        ]
      },
      {
        path: 'approve',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'user-project/:userId(\\d+)',
            component: () => import('@/pages/wcx/approve/select-approver-project.vue'),
            meta: { title: '待形式审查项目分配', hidden: true, activeMenu: '/wcx/approve/approver-management' },
          },
        ]
      },
      {
        path: 'award',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'year-review/:taskId(\\d+)',
            component: () => import('@/pages/wcx/apply/year-innovation-award-review.vue'),
            meta: { title: '年度评奖', hidden: true, activeMenu: '/wcx/year/award' },
          }
        ]
      },
    ]
  },
  {
    path: "/cgzh/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'patent',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'patent-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/patent/patent-apply.vue'),
            meta: { title: '专利录入', hidden: true, activeMenu: '/cgzh/patent/patent-index' },
          }
        ]
      },
      {
        path: 'thesis',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'thesis-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/thesis/thesis-apply.vue'),
            meta: { title: '论文录入', hidden: true, activeMenu: '/cgzh/thesis/thesis-index' },
          }
        ]
      },
      {
        path: 'awards',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'awards-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/awards/awards-apply.vue'),
            meta: { title: '奖励录入', hidden: true, activeMenu: '/cgzh/awards/awards-index' },
          }
        ]
      },
      {
        path: 'treatise',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'treatise-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/treatise/treatise-apply.vue'),
            meta: { title: '著作录入', hidden: true, activeMenu: '/cgzh/treatise/treatise-index' },
          }
        ]
      },
      {
        path: 'copyright',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'copyright-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/copyright/copyright-apply.vue'),
            meta: { title: '软件著作权录入', hidden: true, activeMenu: '/cgzh/copyright/copyright-index' },
          }
        ]
      },
      {
        path: 'extend',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'extend-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/extend/extend-apply.vue'),
            meta: { title: '成果推广', hidden: true, activeMenu: '/cgzh/extend/extend-index' },
          }
        ]
      },
      {
        path: 'evaluate',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'evaluate-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/evaluate/evaluate-apply.vue'),
            meta: { title: '成果评价', hidden: true, activeMenu: '/cgzh/evaluate/evaluate-index' },
          }
        ]
      },
      {
        path: 'collect',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'collect-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/collect/collect-apply.vue'),
            meta: { title: '成果征集表', hidden: true, activeMenu: '/cgzh/collect/collect-index' },
          }
        ]
      },
      {
        path: 'other',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'other-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/other/other-apply.vue'),
            meta: { title: '其他成果录入', hidden: true, activeMenu: '/cgzh/other/other-index' },
          }
        ]
      },
      {
        path: 'gf',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'gf-apply/:taskId(\\d+)',
            component: () => import('@/pages/cgzh/gf/gf-apply.vue'),
            meta: { title: '工法录入', hidden: true, activeMenu: '/cgzh/gf/gf-index' },
          }
        ]
      },
    ]
  },
  {
    path: "/kjtjdc/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'manage',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'fill-table-info',
            component: () => import('@/pages/kjtjdc/forms/index.vue'),
            meta: { title: '查看已填表单', hidden: true, activeMenu: '/kjtjdc/manage/view-table-list' },
          }
        ]
      },
      {
        path: 'reset/:userId(\\d+)',
        component: () => import('@/pages/kjtjdc/tables/reset.vue'),
        meta: { title: '表单重置', hidden: true, activeMenu: '/kjtjdc/tables' },
      },
    ]
  },
  {
    path: "/kpzh/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'science-base',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'base-apply/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/science-base/base-apply.vue'),
            meta: { title: '科普基地申报', hidden: true, activeMenu: '/kpzh/science-base/base-my' },
          }
        ]
      },
      {
        path: 'personnel',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'personnel-add-edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/personnel/personnel-add-edit.vue'),
            meta: { title: '新增科普人员', hidden: true, activeMenu: '/kpzh/personnel/personnel-my' },
          },
          {
            path: 'personnel-add-edit/edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/personnel/personnel-add-edit.vue'),
            meta: { title: '编辑科普人员', hidden: true, activeMenu: '/kpzh/personnel/personnel-my' },
          }
        ]
      },
      {
        path: 'education',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'education-add-edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/education/education-add-edit.vue'),
            meta: { title: '新增科普教育', hidden: true, activeMenu: '/kpzh/education/education-my' },
          },
          {
            path: 'education-add-edit/edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/education/education-add-edit.vue'),
            meta: { title: '编辑科普教育', hidden: true, activeMenu: '/kpzh/education/education-my' },
          }
        ]
      },
      {
        path: 'events',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'events-add-edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/events/events-add-edit.vue'),
            meta: { title: '新增科普活动', hidden: true, activeMenu: '/kpzh/events/events-my' },
          },
          {
            path: 'events-add-edit/edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/events/events-add-edit.vue'),
            meta: { title: '编辑科普活动', hidden: true, activeMenu: '/kpzh/events/events-my' },
          }
        ]
      },
      {
        path: 'expenditure',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'expenditure-add-edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/expenditure/expenditure-add-edit.vue'),
            meta: { title: '新增科普经费', hidden: true, activeMenu: '/kpzh/expenditure/expenditure-my' },
          },
          {
            path: 'expenditure-add-edit/edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/expenditure/expenditure-add-edit.vue'),
            meta: { title: '编辑科普经费', hidden: true, activeMenu: '/kpzh/expenditure/expenditure-my' },
          }
        ]
      },
      {
        path: 'media',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'media-add-edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/media/media-add-edit.vue'),
            meta: { title: '新增科普传媒', hidden: true, activeMenu: '/kpzh/media/media-my' },
          },
          {
            path: 'media-add-edit/edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/media/media-add-edit.vue'),
            meta: { title: '编辑科普传媒', hidden: true, activeMenu: '/kpzh/media/media-my' },
          }
        ]
      },
      {
        path: 'site',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'site-add-edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/site/site-add-edit.vue'),
            meta: { title: '新增科普场地', hidden: true, activeMenu: '/kpzh/site/site-my' },
          },
          {
            path: 'site-add-edit/edit/:taskId(\\d+)',
            component: () => import('@/pages/kpzh/site/site-add-edit.vue'),
            meta: { title: '编辑科普场地', hidden: true, activeMenu: '/kpzh/site/site-my' },
          }
        ]
      },
    ]
  },
  {
    path: "/ggxq/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'special-plan',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'special-plan-apply/:taskId(\\d+)',
            component: () => import('@/pages/ggxq/specialPlan/special-plan-apply.vue'),
            meta: { title: '需求征集表', hidden: true, activeMenu: '/ggxq/specialPlan/special-plan-index' },
          }
        ]
      }
    ]
  },
  {
    path: "/kjrc/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'talents',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'talents-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjrc/talents/talents-apply.vue'),
            meta: { title: '人才申报', hidden: true, activeMenu: '/kjrc/talents/talents-my' },
          }
        ]
      },
      {
        path: 'in',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'in-apply/:taskId(\\d+)',
            component: () => import('@/pages/kjrc/in/in-apply.vue'),
            meta: { title: '新增入库人才', hidden: true, activeMenu: '/kjrc/in/in-my' },
          }
        ]
      },
    ]
  },
  {
    path: "/yxjk/other",
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: 'system',
        component: () => import('@/layouts/blank.vue'),
        meta: { hidden: true },
        children: [
          {
            path: 'system-analysis/:taskId',
            component: () => import('@/pages/yxjk/system/system-analysis.vue'),
            meta: { title: '系统分析', hidden: true, activeMenu: '/yxjk/system/index' },
          }
        ]
      }
    ]
  }
  // {
  //   path: '*',
  //   redirect: '/home/base',
  // },
  // {
  //   path: '*',
  //   // component: HomeLayout,
  //   redirect: '/home/base',
  //   // children: [
  //   //   {
  //   //     path: '404',
  //   //     component: () => import('@/pages/common/404.vue'),
  //   //     meta: { title: '访问页面不存在页' },
  //   //   },
  //   // ]
  // },
  // ...asyncRouterList,
];

export default routerList;
